<?
// Get config variable from database
$db_config = new db_query('SELECT * FROM configuration WHERE con_lang_id = ' . $lang_id);
if ($row = mysql_fetch_array($db_config->result))
{
	while (list($data_field, $data_value) = each($row))
	{
		if (!is_int($data_field))
		{
			$$data_field = $data_value;
		}
	}
}
$db_config->close();
unset($db_config);

$gs_imagepath = $con_root_path . 'images/';
$gs_csspath = $con_root_path . 'css/';
$gs_jspath = $con_root_path . 'js/';

$theme_imagepath = $con_root_path . 'themes/css/' . $con_theme . '/';
$theme_csspath = $con_root_path . 'themes/css/';
$theme_jspath = $con_root_path . 'themes/js/';

$gs_today = getdate();	
$gs_yesterday = getdate(strtotime('yesterday'));

if ($con_bg_type == 0)
{
	$body_style = '';
	$div_id_body_style = '';
}
else
{
	if ($con_bg_type == 1)
	{
		$db_ub = new db_query('SELECT ub_picture FROM user_background WHERE ub_id = ' . $con_bg_default_id);
		$row = mysql_fetch_array($db_ub->result);
		unset($db_ub);
		$user_background .= $row['ub_picture'];
	}
	else
	{
		$user_background .= $con_bg_user_upload;
	}
	$body_style = 'background:url(/user_background/' . $user_background . ') top center';
	if ($con_bg_user_fixed)
	{
		$body_style .= ' fixed';
	}
	$body_style = ' style="' . $body_style . '"';
	$div_id_body_style = ' style="background:none"';
}

$arrProductQuality = array_product_quality();
$arrProductType = array_product_type();
$arrProductVat = array_product_vat();
$arrProductShipCos = array_product_ship_cos();

$arrPollEstimate = array_poll_estimate();

if ($con_message_zero_price == '') $con_message_zero_price = tdt('Vui_long_goi');